<template>
    <div>
        <van-nav-bar title="商品列表" left-text="返回" left-arrow @click-left="onClickLeft" />
        <router-link :to="/xq/+goods_id">
            <van-card :title="item in search"thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg" />  
        </router-link>
    </div>
</template>

<script setup>
import { ref } from 'vue';
import { searchAPi } from '@/api/api'
import { useRoute } from 'vue-router';
let router = useRoute();
let search = ref([])
searchAPi(router.params.goods).then(res => {
    console.log('列表数据', res);
    search.value = res.data.message
})
</script>

<style lang="scss" scoped></style>